scores = input("请评委依次输入分数(0-10分整数，用空格隔开):").split() #输入
# print(scores)
scores = [int(score) for score in scores]                      #整型化
# print(scores)
scores.sort()                                                  #排列
# print(scores)
scores = scores[1:-1]                                          #去首尾
# print(scores)
average_score = sum(scores)/len(scores)                        #求均值
print(f"选手最终得分为:{average_score}")







